 

        <g:set var="entityName" value="${message(code: 'teacher.label', default: 'Teacher')}" />
            <div class="list">
                <table>
                    <thead>
                        <tr>

                            <g:sortableColumn property="NO" title="${message(code: 'teacher.NO.label', default: 'NO')}" />
                        
                            <g:sortableColumn property="username" title="${message(code: 'teacher.username.label', default: 'Username')}" />                        
                        
                            <g:sortableColumn property="name" title="${message(code: 'teacher.name.label', default: 'Name')}" /> 
                             
                             <th>最近几个月的考勤纪录</th>
                        
                           
                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${teacherInstanceList}" status="i" var="teacherInstance">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                            <td>${fieldValue(bean: teacherInstance, field: "NO")}</td>

                            <td>${teacherInstance.escpeName()}</td>
                        
                            <td>${fieldValue(bean: teacherInstance, field: "name")}</td> 
 
                            <td>
                                <g:each in="${recently}" var="m">
                                    <g:link action="attendance" id="${teacherInstance.id}" params="[month: m]">${m+1}月</g:link>&nbsp;&nbsp;
                                </g:each>
                                <g:link action="more" id="${teacherInstance.id}" >更多...</g:link>&nbsp;&nbsp;
                            </td> 
                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
            <div class="paginateButtons">
                <x:paginate total="${teacherInstanceTotal}" />
            </div>
